// 以前 token 令牌，如果存到了本地，每一次都写这么长，太麻烦
// localStorage.setItem(键， 值)
// localStorage.getItem(键)
// localStorage.removeItem(键)

const KEY = "cmstoken";

// 设置
export const setTokenLocal = (token) => {
    localStorage.setItem(KEY, token);
}

// 获取
export const getTokenLocal = () => {
    return localStorage.getItem(KEY);
}

// 删除
export const delTokenLocal = () => {
    localStorage.removeItem(KEY);
}